package ooday01;

import javax.print.Doc;

//继承的测试类
public class ExtendsTest {
    public static void main(String[] args) {
        //学生类继承访问
        Student ls = new Student("李四", 19, "上海", "软件工程", 2019002);
        ls.sayHi();
        ls.study();
        ls.eat();
        ls.sleep();

        //老师类继承访问
        Teacher ll = new Teacher("李琳", 30, "上海", 5000);
        ll.sayHi();
        ll.teach();

        //医生类继承访问
        Doctor ww = new Doctor("王五", 40, "北京", "主任医师");
        ww.sayHi();
        ww.cut();
    }
}
